package com.bipbip.modelo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

@Entity
@Table(name = "Vehiculo")
public @Data
class Vehiculo {

	@Column(name = "idMarca")
	protected Integer idMarca;

	@Column(name = "plazas")
	protected Integer plazas;

	@Column(name = "idModelo")
	protected Integer idModelo;

	@Column(name = "idUsuario")
	protected Integer usuario;

	@Column(name = "anio")
	protected Integer anio;
	
	/*@ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE})
	@JoinColumn( name = "idUsuario")
	protected Usuario usuario;
	*/

	@Column(name = "isDeleted")
	protected boolean isDeleted;
		
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	protected Integer id;

}
